import React, { Component, useState } from "react";
import Tow from "./tow"
import Three from "./three";
export default class One extends Component {
    state = {
        num: 0
    }
    getRef = () => {
        this.refs.three.isFlag()
    }
    render() {
        return (
            <div>
                <h1>one组件</h1>
                {/* <button onClick={this.getRef}>ref</button> */}
                <hr />
                <Tow num={this.state.num} getRef={this.getRef}></Tow>
                <hr />
                <Three ref={"three"}></Three>
            </div>
        )
    }
}
